package com.cskaoyan.mall.dao;

import com.cskaoyan.mall.model.goods.Spec;
import com.cskaoyan.mall.model.orders.*;
import com.cskaoyan.mall.model.comment.Comment;
import java.util.List;

/**
 * @author: jyf2000jyf
 */
public interface OrderDao {
    int selectTotal(OrdersByPageBO ordersByPageBO);

    List<OrdersByPageVOInnerOrderInfo> orderByPage(OrdersByPageBO ordersByPageBO);

    boolean deleteOrder(int id);

    List<Spec> getSpecByOrderId(int orderId);

    OrderByIdVO getOrderById(int orderId);

    boolean changeOrder(changeOrderBO changeOrderBO);

    List<OrderByStateVO> getOrderByState(Integer state, Integer userId);

    List<OrderByStateVO> getOrderByState(Integer userId);

    boolean pay(Integer id);

    boolean confirmReceive(Integer id);

    boolean settleAccounts(CartList cartList);

    boolean addOrder(Orders orders);

    GoodsAndSpecs getGoodsAndSpecsBySpecId(Integer goodsDetailId);

    String getSpecNameByOrderId(Integer ordersId);

    boolean sendComment(Comment comment);

    boolean setHasCommentByOrderId(Integer ordersId);
}
